%Succeed to open USB2Dynamixel!
data=struct();
% Reglage:
data.description_experience="Mesure du couple lors de la levé d'un poid de 1Kg";
data.values=zeros(10000,6);% Indices des colonnes de données
data.col_time=1;
data.col_position=2;
data.col_vitesse=3;
data.col_current=4;
data.col_load=5;
data.col_consigne=6;
i=0;

%Duree_us: 1500000
%Press Enter key to continue!(press ESC and Enter to quit)

%Parametre : speedRpm < 10.000000%PresentTimeUs,PresentPosDegree,PresentSpeedRadps,PresentCurrentInc,PresentLoadNm,Goalposdegree
i=i+1;data.values(i,:)=[1,1690,0,2047,40,-90.000015];
i=i+1;data.values(i,:)=[10997,1690,0,2036,96,-90.000015];
i=i+1;data.values(i,:)=[21017,1690,0,2026,133,-90.000015];
i=i+1;data.values(i,:)=[30022,1687,1048,2019,141,-90.000015];
i=i+1;data.values(i,:)=[42014,1681,1068,2020,109,-90.000015];
i=i+1;data.values(i,:)=[52044,1674,1092,2024,93,-90.000015];
i=i+1;data.values(i,:)=[64047,1666,1104,2023,56,-90.000015];
i=i+1;data.values(i,:)=[76027,1656,1112,2021,56,-90.000015];
i=i+1;data.values(i,:)=[86148,1648,1116,2024,56,-90.000015];
i=i+1;data.values(i,:)=[96040,1640,1116,2024,50,-90.000015];
i=i+1;data.values(i,:)=[104055,1634,1112,2024,56,-90.000015];
i=i+1;data.values(i,:)=[112042,1628,1116,2024,56,-90.000015];
i=i+1;data.values(i,:)=[120050,1622,1108,2024,56,-90.000015];
i=i+1;data.values(i,:)=[128954,1616,1112,2023,56,-90.000015];
i=i+1;data.values(i,:)=[137032,1610,1112,2027,56,-90.000015];
i=i+1;data.values(i,:)=[145030,1603,1112,2026,56,-90.000015];
i=i+1;data.values(i,:)=[153221,1596,1116,2023,48,-90.000015];
i=i+1;data.values(i,:)=[161028,1590,1112,2023,48,-90.000015];
i=i+1;data.values(i,:)=[170035,1583,1108,2023,48,-90.000015];
i=i+1;data.values(i,:)=[178089,1578,1108,2025,62,-90.000015];
i=i+1;data.values(i,:)=[187029,1571,1108,2026,62,-90.000015];
i=i+1;data.values(i,:)=[196273,1564,1108,2025,56,-90.000015];
i=i+1;data.values(i,:)=[204038,1558,1112,2024,62,-90.000015];
i=i+1;data.values(i,:)=[212043,1552,1108,2024,62,-90.000015];
i=i+1;data.values(i,:)=[220037,1547,1108,2025,56,-90.000015];
i=i+1;data.values(i,:)=[228047,1540,1112,2024,56,-90.000015];
i=i+1;data.values(i,:)=[236032,1534,1112,2024,56,-90.000015];
i=i+1;data.values(i,:)=[244034,1529,1116,2024,48,-90.000015];
i=i+1;data.values(i,:)=[252040,1523,1112,2023,48,-90.000015];
i=i+1;data.values(i,:)=[260041,1516,1108,2025,62,-90.000015];
i=i+1;data.values(i,:)=[268036,1511,1112,2025,56,-90.000015];
i=i+1;data.values(i,:)=[276040,1504,1112,2025,56,-90.000015];
i=i+1;data.values(i,:)=[284042,1497,1116,2028,34,-90.000015];
i=i+1;data.values(i,:)=[292034,1491,1116,2026,34,-90.000015];
i=i+1;data.values(i,:)=[300057,1486,1116,2026,40,-90.000015];
i=i+1;data.values(i,:)=[308042,1480,1116,2023,54,-90.000015];
i=i+1;data.values(i,:)=[316412,1474,1108,2022,68,-90.000015];
i=i+1;data.values(i,:)=[325031,1467,1104,2020,76,-90.000015];
i=i+1;data.values(i,:)=[333030,1462,1100,2022,76,-90.000015];
i=i+1;data.values(i,:)=[341038,1457,1104,2025,76,-90.000015];
i=i+1;data.values(i,:)=[349042,1450,1112,2024,56,-90.000015];
i=i+1;data.values(i,:)=[359034,1442,1116,2025,50,-90.000015];
i=i+1;data.values(i,:)=[367052,1435,1116,2025,50,-90.000015];
i=i+1;data.values(i,:)=[375033,1429,1120,2025,42,-90.000015];
i=i+1;data.values(i,:)=[384047,1422,1112,2029,42,-90.000015];
i=i+1;data.values(i,:)=[392193,1416,1112,2025,48,-90.000015];
i=i+1;data.values(i,:)=[401027,1410,1112,2024,54,-90.000015];
i=i+1;data.values(i,:)=[410034,1404,1108,2021,76,-90.000015];
i=i+1;data.values(i,:)=[418115,1398,1104,2023,76,-90.000015];
i=i+1;data.values(i,:)=[426031,1393,1104,2025,62,-90.000015];
i=i+1;data.values(i,:)=[434030,1386,1108,2024,42,-90.000015];
i=i+1;data.values(i,:)=[442033,1380,1116,2027,42,-90.000015];
i=i+1;data.values(i,:)=[450028,1373,1116,2028,36,-90.000015];
i=i+1;data.values(i,:)=[458031,1367,1116,2026,42,-90.000015];
i=i+1;data.values(i,:)=[466045,1361,1116,2026,48,-90.000015];
i=i+1;data.values(i,:)=[474030,1355,1112,2021,48,-90.000015];
i=i+1;data.values(i,:)=[482042,1350,1104,2024,68,-90.000015];
i=i+1;data.values(i,:)=[490050,1345,1104,2022,82,-90.000015];
i=i+1;data.values(i,:)=[498033,1338,1104,2022,62,-90.000015];
i=i+1;data.values(i,:)=[506041,1332,1108,2025,62,-90.000015];
i=i+1;data.values(i,:)=[514031,1325,1112,2026,56,-90.000015];
i=i+1;data.values(i,:)=[522034,1320,1120,2022,42,-90.000015];
i=i+1;data.values(i,:)=[530029,1313,1116,2023,42,-90.000015];
i=i+1;data.values(i,:)=[538029,1307,1112,2026,42,-90.000015];
i=i+1;data.values(i,:)=[546035,1301,1112,2027,62,-90.000015];
i=i+1;data.values(i,:)=[554035,1295,1108,2025,68,-90.000015];
i=i+1;data.values(i,:)=[562046,1290,1108,2024,48,-90.000015];
i=i+1;data.values(i,:)=[571030,1284,1108,2022,62,-90.000015];
i=i+1;data.values(i,:)=[579030,1277,1108,2024,48,-90.000015];
i=i+1;data.values(i,:)=[587032,1271,1108,2025,62,-90.000015];
i=i+1;data.values(i,:)=[595048,1265,1116,2022,56,-90.000015];
i=i+1;data.values(i,:)=[603130,1259,1108,2023,48,-90.000015];
i=i+1;data.values(i,:)=[612038,1253,1108,2025,56,-90.000015];
i=i+1;data.values(i,:)=[620044,1246,1112,2027,56,-90.000015];
i=i+1;data.values(i,:)=[628058,1240,1112,2027,48,-90.000015];
i=i+1;data.values(i,:)=[636061,1234,1108,2023,62,-90.000015];
i=i+1;data.values(i,:)=[644041,1228,1112,2023,48,-90.000015];
i=i+1;data.values(i,:)=[652034,1223,1108,2026,48,-90.000015];
i=i+1;data.values(i,:)=[661030,1217,1108,2023,62,-90.000015];
i=i+1;data.values(i,:)=[671038,1208,1112,2026,56,-90.000015];
i=i+1;data.values(i,:)=[679031,1201,1112,2026,48,-90.000015];
i=i+1;data.values(i,:)=[687040,1195,1116,2024,48,-90.000015];
i=i+1;data.values(i,:)=[695033,1189,1112,2024,62,-90.000015];
i=i+1;data.values(i,:)=[703033,1183,1112,2023,62,-90.000015];
i=i+1;data.values(i,:)=[712066,1177,1108,2023,56,-90.000015];
i=i+1;data.values(i,:)=[720058,1171,1108,2021,62,-90.000015];
i=i+1;data.values(i,:)=[728045,1165,1108,2025,62,-90.000015];
i=i+1;data.values(i,:)=[736051,1158,1112,2026,56,-90.000015];
i=i+1;data.values(i,:)=[744035,1153,1108,2026,48,-90.000015];
i=i+1;data.values(i,:)=[752036,1147,1112,2024,42,-90.000015];
i=i+1;data.values(i,:)=[760042,1140,1112,2026,56,-90.000015];
i=i+1;data.values(i,:)=[768046,1135,1112,2023,56,-90.000015];
i=i+1;data.values(i,:)=[776045,1128,1108,2024,56,-90.000015];
i=i+1;data.values(i,:)=[785028,1122,1112,2023,48,-90.000015];
i=i+1;data.values(i,:)=[793037,1116,1108,2024,42,-90.000015];
i=i+1;data.values(i,:)=[801033,1110,1116,2025,42,-90.000015];
i=i+1;data.values(i,:)=[809033,1103,1116,2023,48,-90.000015];
i=i+1;data.values(i,:)=[817047,1098,1112,2026,62,-90.000015];
i=i+1;data.values(i,:)=[826035,1091,1112,2024,56,-90.000015];
i=i+1;data.values(i,:)=[834037,1086,1104,2024,56,-90.000015];
i=i+1;data.values(i,:)=[842040,1080,1112,2023,62,-90.000015];
i=i+1;data.values(i,:)=[851028,1074,1112,2024,56,-90.000015];
i=i+1;data.values(i,:)=[859040,1067,1112,2026,56,-90.000015];
i=i+1;data.values(i,:)=[867052,1061,1112,2026,48,-90.000015];
i=i+1;data.values(i,:)=[876045,1054,1112,2023,42,-90.000015];
i=i+1;data.values(i,:)=[884103,1048,1112,2023,56,-90.000015];
i=i+1;data.values(i,:)=[892819,1041,1108,2024,56,-90.000015];
i=i+1;data.values(i,:)=[901038,1035,1108,2026,62,-90.000015];
i=i+1;data.values(i,:)=[909036,1030,1112,2026,48,-90.000015];
i=i+1;data.values(i,:)=[917056,1024,1112,2025,62,-90.000015];
i=i+1;data.values(i,:)=[926080,1018,1108,2026,48,-90.000015];
i=i+1;data.values(i,:)=[934047,1012,1108,2024,62,-90.000015];
i=i+1;data.values(i,:)=[942033,1006,1108,2023,70,-90.000015];
i=i+1;data.values(i,:)=[950031,1000,1112,2025,56,-90.000015];
i=i+1;data.values(i,:)=[958034,994,1112,2024,62,-90.000015];
i=i+1;data.values(i,:)=[967027,987,1112,2021,56,-90.000015];
i=i+1;data.values(i,:)=[975030,982,1108,2024,56,-90.000015];
i=i+1;data.values(i,:)=[983029,976,1108,2023,56,-90.000015];
i=i+1;data.values(i,:)=[992048,969,1108,2023,62,-90.000015];
i=i+1;data.values(i,:)=[1001038,962,1116,2024,56,-90.000015];
i=i+1;data.values(i,:)=[1009033,956,1112,2023,56,-90.000015];
i=i+1;data.values(i,:)=[1019052,949,1112,2023,56,-90.000015];
i=i+1;data.values(i,:)=[1027029,943,1108,2024,62,-90.000015];
i=i+1;data.values(i,:)=[1035029,936,1108,2023,56,-90.000015];
i=i+1;data.values(i,:)=[1043028,931,1108,2024,62,-90.000015];
i=i+1;data.values(i,:)=[1052038,923,1108,2024,48,-90.000015];
i=i+1;data.values(i,:)=[1061036,918,1108,2023,48,-90.000015];
i=i+1;data.values(i,:)=[1070054,910,1112,2021,48,-90.000015];
i=i+1;data.values(i,:)=[1079031,903,1108,2026,42,-90.000015];
i=i+1;data.values(i,:)=[1088044,896,1116,2028,28,-90.000015];
i=i+1;data.values(i,:)=[1097030,889,1112,2028,34,-90.000015];
i=i+1;data.values(i,:)=[1105032,883,1112,2026,48,-90.000015];
i=i+1;data.values(i,:)=[1115031,876,1108,2027,54,-90.000015];
i=i+1;data.values(i,:)=[1125031,870,1100,2021,68,-90.000015];
i=i+1;data.values(i,:)=[1134048,864,1104,2025,62,-90.000015];
i=i+1;data.values(i,:)=[1143037,857,1108,2021,62,-90.000015];
i=i+1;data.values(i,:)=[1152061,850,1112,2023,56,-90.000015];
i=i+1;data.values(i,:)=[1163032,841,1112,2027,42,-90.000015];
i=i+1;data.values(i,:)=[1173057,833,1112,2023,56,-90.000015];
i=i+1;data.values(i,:)=[1181027,828,1112,2026,56,-90.000015];
i=i+1;data.values(i,:)=[1191031,821,1112,2026,42,-90.000015];
i=i+1;data.values(i,:)=[1200042,814,1112,2023,56,-90.000015];
i=i+1;data.values(i,:)=[1209042,808,1112,2024,48,-90.000015];
i=i+1;data.values(i,:)=[1218030,801,1112,2026,48,-90.000015];
i=i+1;data.values(i,:)=[1227029,794,1108,2024,62,-90.000015];
i=i+1;data.values(i,:)=[1236068,787,1112,2024,56,-90.000015];
i=i+1;data.values(i,:)=[1245031,780,1112,2026,56,-90.000015];
i=i+1;data.values(i,:)=[1254036,773,1112,2023,48,-90.000015];
i=i+1;data.values(i,:)=[1263836,766,1112,2024,48,-90.000015];
i=i+1;data.values(i,:)=[1272042,760,1108,2025,62,-90.000015];
i=i+1;data.values(i,:)=[1282039,753,1108,2026,62,-90.000015];
i=i+1;data.values(i,:)=[1291045,746,1112,2027,56,-90.000015];
i=i+1;data.values(i,:)=[1300044,740,1112,2026,48,-90.000015];
i=i+1;data.values(i,:)=[1309034,734,1112,2025,62,-90.000015];
i=i+1;data.values(i,:)=[1319033,726,1116,2026,56,-90.000015];
i=i+1;data.values(i,:)=[1328042,719,1112,2024,48,-90.000015];
i=i+1;data.values(i,:)=[1337031,713,1112,2026,62,-90.000015];
i=i+1;data.values(i,:)=[1345027,707,1108,2020,54,-90.000015];
i=i+1;data.values(i,:)=[1354031,701,1108,2023,62,-90.000015];
i=i+1;data.values(i,:)=[1364055,694,1112,2024,62,-90.000015];
i=i+1;data.values(i,:)=[1373039,688,1112,2024,56,-90.000015];
i=i+1;data.values(i,:)=[1382058,681,1108,2019,70,-90.000015];
i=i+1;data.values(i,:)=[1391034,674,1108,2022,48,-90.000015];
i=i+1;data.values(i,:)=[1400041,667,1112,2026,62,-90.000015];
i=i+1;data.values(i,:)=[1410034,660,1108,2024,56,-90.000015];
i=i+1;data.values(i,:)=[1419037,653,1108,2024,56,-90.000015];
i=i+1;data.values(i,:)=[1427037,647,1108,2024,56,-90.000015];
i=i+1;data.values(i,:)=[1436064,640,1112,2023,56,-90.000015];
i=i+1;data.values(i,:)=[1445150,633,1112,2022,56,-90.000015];
i=i+1;data.values(i,:)=[1456049,626,1112,2022,56,-90.000015];
i=i+1;data.values(i,:)=[1466036,618,1112,2022,56,-90.000015];
i=i+1;data.values(i,:)=[1475030,612,1112,2024,56,-90.000015];
i=i+1;data.values(i,:)=[1484046,605,1108,2026,48,-90.000015];
i=i+1;data.values(i,:)=[1495031,595,1116,2024,48,-90.000015];
i=i+1;data.values(i,:)=[1505489,588,1116,2024,48,-90.000015];
data.values=data.values(1:i,:);
